import React from 'react';
import ReactDOM from 'react-dom';
import Router from './route/';
import {Provider} from 'react-redux';
import store from './store/store';

import './index.css';
import 'antd-mobile/dist/antd-mobile.css';
import registerServiceWorker from './registerServiceWorker';
import './static/css/main.css'

const render = Component =>{
    ReactDOM.render(
        <Provider store={store}>
            <Component/>
        </Provider>
        ,
        document.getElementById('root'));
};

render(Router);

registerServiceWorker();
